package com.newer.his.common.mapper;


import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

import com.newer.his.common.entity.Card;

@Mapper
public interface CardMapper {
	
	@Options(useGeneratedKeys  = true,keyColumn = "card_id",keyProperty = "id")
	@Insert("insert into card(cardNum,id_patient) value(#{id},#{patientid.id});")
	Card save(Card card);	
}
